package com.riant;

import com.riant.service.AccountService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Classname WebApplication
 * @Description TODO
 * @Date 2021/8/17 23:46
 * @Created by 张斌
 */
public class WebApplication {
    public static void main(String[] args) {
        ApplicationContext ctx = new ClassPathXmlApplicationContext("applicationContext.xml");
        AccountService accountService = (AccountService)ctx.getBean("accountService");
        accountService.transfer("Jock1", "Jock2", 100.0D);
    }
}
